package com.xjust.controller.physician;

import com.xjust.service.DiseaseService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;
import java.util.Map;


@RestController
@RequestMapping("/physicians")
public class physicianController {
    @Autowired
    DiseaseService diseaseService;
    //搜索疾病
    @GetMapping("/searchDisease")
    public List<Map<String,Object>> searchDisease(String disease_code,String disease_name,String diseaseICD){

      return  diseaseService.searchDisease(disease_code,disease_name,diseaseICD);
    }
}
